// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';

/** 新增数据标准 新增数据标准 POST /dataStandard/addDataStandard */
export async function addDataStandardUsingPost(
  body: dataFactory.AddDataStandardDTO,
  options?: { [key: string]: any },
) {
  return request<dataFactory.R>('/dataStandard/addDataStandard', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 删除数据标准 通过ID删除数据标准 DELETE /dataStandard/deleteDataStandard/${param0} */
export async function deleteDataStandardUsingDelete(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: dataFactory.deleteDataStandardUsingDELETEParams,
  options?: { [key: string]: any },
) {
  const { id: param0, ...queryParams } = params;
  return request<dataFactory.R>(`/dataStandard/deleteDataStandard/${param0}`, {
    method: 'DELETE',
    params: { ...queryParams },
    ...(options || {}),
  });
}

/** 获取数据标准 通过ID获取数据标准 GET /dataStandard/getDataStandard/${param0} */
export async function getDataStandardUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: dataFactory.getDataStandardUsingGETParams,
  options?: { [key: string]: any },
) {
  const { id: param0, ...queryParams } = params;
  return request<dataFactory.R>(`/dataStandard/getDataStandard/${param0}`, {
    method: 'GET',
    params: { ...queryParams },
    ...(options || {}),
  });
}

/** 更新数据标准 更新数据标准 PUT /dataStandard/updateDataStandard */
export async function updateDataStandardUsingPut(
  body: dataFactory.UpdateDataStandardDTO,
  options?: { [key: string]: any },
) {
  return request<dataFactory.R>('/dataStandard/updateDataStandard', {
    method: 'PUT',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
